import tensorflow as tf
from tensorflow import keras
import os

os.makedirs('outputs/chapter6', exist_ok=True)

# model = tf.keras.models.Sequential([
#     tf.keras.layers.Dense(3, activation = "softmax", kernel_regularizer = tf.keras.regularizers.l2())
# ])

model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8, input_shape=(16,)))

model.save(filepath='outputs/chapter6/my_model.h5')

new_model = tf.keras.models.load_model('outputs/chapter6/my_model.h5')